import { createApp } from 'vue'
import App from './App.vue'
import router from "./router/router"
import ElementPlus from "element-plus"
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import LazyLoad from "vue3-lazyload";

const app = createApp(App)
app.use(ElementPlus,{locale:zhCn})
app.use(router)
app.use(LazyLoad, {
    loading: "/src/assets/icons/loading.png",
    error: "/src/assets/icons/error.png"
});

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')